#include<stdio.h>
#include<stdlib.h>
#include"personnel.h"
#include"parcours.h"


void chemin_d_un_personnel(char chemin_events[],Personnel *p)
{
FILE *f;
f=fopen(chemin_events,"r");
if((f==NULL)
printf("\n impossible d ouvrire les fichiers ");
else
{while(fscanf(f,"%s%s%s",time,id,capteur)!=EOF)
{
printf("\n%s %s\n");
}
}
}
void comparaison(char parcour[]){

FILE *f5;
f5=fopen("parcour","w");
if(f5==NULL)
{
printf("\n impossible d ouvrire le fichier");
}
else{
fprintf(f5,"%s%s%s%s%s%s%s%s%s%s%s%s%s%s","\n E01","\n C01","\n S01","\n L01","\n L02","\n C02","\n V01","\n I01","\n D01","\n B01","\n N01","\n Sout","\n Pout","\n Ebola");
fscanf(f5,"%s",cap);
if ( strcmp(cap,capteur)==0 )
printf(" le chemin est correct")
else{
printf("\n le chemin est incorrect");
}
fclose(f5);

}
